.key-binding-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.key-binding-modal {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.key-binding-list {
  margin: 20px 0;
}

.key-binding-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.group-title {
  font-size: 16px;
  margin: 10px 0;
  color: #333;
  background-color: #f5f5f5;
  padding: 5px 10px;
  border-radius: 4px;
}

.key-binding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.key-binding-label {
  font-weight: 500;
}

.key-binding-value {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  min-width: 100px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.key-binding-value:hover {
  background-color: #e9e9e9;
}

.key-binding-value.editing {
  background-color: #fff4e5;
  border-color: #ffb74d;
}

.key-binding-value.fixed {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

.key-binding-value.editable {
  background-color: #e3f2fd;
  border: 1px solid #90caf9;
  cursor: pointer;
}

.key-binding-value.editable:hover {
  background-color: #bbdefb;
}

.key-fixed-badge {
  font-size: 10px;
  background-color: #ddd;
  color: #666;
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 5px;
}

.key-capture {
  color: #999;
  font-style: italic;
}

.key-modifier {
  color: #666;
}

.key-name {
  font-weight: bold;
}

.key-binding-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.reset-button {
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.reset-button:hover {
  background-color: #d32f2f;
}

.cancel-button {
  padding: 8px 16px;
  background-color: #9e9e9e;
  color: white;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

.cancel-button:hover {
  background-color: #757575;
}

.save-button {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.save-button:hover {
  background-color: #388e3c;
}

.key-binding-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
  font-style: italic;
}
